Skip to main content
Access via:io.appManager.inMemory

API for handling app definitions at runtime. The API methods operate only on in-memory app definitions.

4 Methods

clear()⚓︎

() => Promise<void>

Removes all app definitions from the in-memory store.

export()⚓︎

() => Promise<Definition[]>

Exports all available app definitions from the in-memory store.

import()⚓︎

(definitions: Definition[], mode?: "replace" | "merge") => Promise<ImportResult>

Imports the provided collection of app definitions.

Parameters (2)

Name Type Required Description
definitions⚓︎ Definition[]

A collection of app definition objects to be imported.

mode⚓︎ "replace" | "merge" x

Mode for importing app definitions. Use "replace" (default) to replace all existing in-memory app definitions. Use "merge" to update the existing ones and add new ones.

remove()⚓︎

(name: string) => Promise<void>

Removes an app definition from the in-memory store.

Parameters (1)

Name Type Required Description
name⚓︎ string

Name of the app to be removed.